<?php
		
	// web_static_generated() 显示第一个字菜单网页静态生成的页面内容
	function web_static_generated() {
		
		global $wpdb;
		
		//对数据表bw_template的sql查询语句
		$sql = "select name from bw_template";
		
		$result = $wpdb->get_results($sql);
		
	    echo "<h2>网页静态生成</h2>";
	    echo "<span>点击下面链接后即可生成相应模板静态页</span>";
	    echo '<form id="static_web" method="post" >';
	    //根据结果集打印出模板name
	    foreach($result as $row){
	    	echo'<span>生成：</span><input type="submit" value="'.$row->name.'模板生成" />'.'<br/>';
	    }
		echo '</form>';
	}